Optimal. Leaf size=293 \[ -\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}+\frac{f \log \left (a+b x^4\right )}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.222421, antiderivative size = 293, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 11, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.44, Rules used = {1876, 1168, 1162, 617, 204, 1165, 628, 1248, 635, 205, 260} \[ -\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}+\frac{f \log \left (a+b x^4\right )}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1876
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rule 1248
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{c+d x+e x^2+f x^3}{a+b x^4} \, dx &=\int \left (\frac{c+e x^2}{a+b x^4}+\frac{x \left (d+f x^2\right )}{a+b x^4}\right ) \, dx\\ &=\int \frac{c+e x^2}{a+b x^4} \, dx+\int \frac{x \left (d+f x^2\right )}{a+b x^4} \, dx\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{d+f x}{a+b x^2} \, dx,x,x^2\right )+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}-e\right ) \int \frac{\sqrt{a} \sqrt{b}-b x^2}{a+b x^4} \, dx}{2 b}+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+e\right ) \int \frac{\sqrt{a} \sqrt{b}+b x^2}{a+b x^4} \, dx}{2 b}\\ &=\frac{1}{2} d \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,x^2\right )+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+e\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 b}+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+e\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 b}-\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{1}{2} f \operatorname{Subst}\left (\int \frac{x}{a+b x^2} \, dx,x,x^2\right )\\ &=\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}-\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{f \log \left (a+b x^4\right )}{4 b}+\frac{\left (\sqrt{b} c+\sqrt{a} e\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c+\sqrt{a} e\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}\\ &=\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}-\frac{\left (\sqrt{b} c+\sqrt{a} e\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c+\sqrt{a} e\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{f \log \left (a+b x^4\right )}{4 b}\\ \end{align*}
Mathematica [A] time = 0.214556, size = 296, normalized size = 1.01 \[ \frac{-\sqrt{2} \sqrt [4]{b} \left (\sqrt [4]{a} \sqrt{b} c-a^{3/4} e\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )+\sqrt{2} \sqrt [4]{b} \left (\sqrt [4]{a} \sqrt{b} c-a^{3/4} e\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-2 \sqrt [4]{a} \sqrt [4]{b} \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (2 \sqrt [4]{a} \sqrt [4]{b} d+\sqrt{2} \sqrt{a} e+\sqrt{2} \sqrt{b} c\right )+2 \sqrt [4]{a} \sqrt [4]{b} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (-2 \sqrt [4]{a} \sqrt [4]{b} d+\sqrt{2} \sqrt{a} e+\sqrt{2} \sqrt{b} c\right )+2 a f \log \left (a+b x^4\right )}{8 a b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 294, normalized size = 1. \begin{align*}{\frac{c\sqrt{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{d}{2}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{e\sqrt{2}}{8\,b}\ln \left ({ \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{f\ln \left ( b{x}^{4}+a \right ) }{4\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 13.2101, size = 950, normalized size = 3.24 \begin{align*} \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{4} - 256 t^{3} a^{3} b^{3} f + t^{2} \left (96 a^{3} b^{2} f^{2} + 64 a^{2} b^{3} c e + 32 a^{2} b^{3} d^{2}\right ) + t \left (- 16 a^{3} b f^{3} - 32 a^{2} b^{2} c e f - 16 a^{2} b^{2} d^{2} f + 16 a^{2} b^{2} d e^{2} - 16 a b^{3} c^{2} d\right ) + a^{3} f^{4} + 4 a^{2} b c e f^{2} + 2 a^{2} b d^{2} f^{2} - 4 a^{2} b d e^{2} f + a^{2} b e^{4} + 4 a b^{2} c^{2} d f + 2 a b^{2} c^{2} e^{2} - 4 a b^{2} c d^{2} e + a b^{2} d^{4} + b^{3} c^{4}, \left ( t \mapsto t \log{\left (x + \frac{64 t^{3} a^{4} b^{3} e^{3} - 64 t^{3} a^{3} b^{4} c^{2} e + 128 t^{3} a^{3} b^{4} c d^{2} - 48 t^{2} a^{4} b^{2} e^{3} f + 48 t^{2} a^{3} b^{3} c^{2} e f - 96 t^{2} a^{3} b^{3} c d^{2} f + 48 t^{2} a^{3} b^{3} c d e^{2} - 32 t^{2} a^{3} b^{3} d^{3} e + 16 t^{2} a^{2} b^{4} c^{3} d + 12 t a^{4} b e^{3} f^{2} - 12 t a^{3} b^{2} c^{2} e f^{2} + 24 t a^{3} b^{2} c d^{2} f^{2} - 24 t a^{3} b^{2} c d e^{2} f + 12 t a^{3} b^{2} c e^{4} + 16 t a^{3} b^{2} d^{3} e f + 12 t a^{3} b^{2} d^{2} e^{3} - 8 t a^{2} b^{3} c^{3} d f - 16 t a^{2} b^{3} c^{3} e^{2} + 36 t a^{2} b^{3} c^{2} d^{2} e + 8 t a^{2} b^{3} c d^{4} + 4 t a b^{4} c^{5} - a^{4} e^{3} f^{3} + a^{3} b c^{2} e f^{3} - 2 a^{3} b c d^{2} f^{3} + 3 a^{3} b c d e^{2} f^{2} - 3 a^{3} b c e^{4} f - 2 a^{3} b d^{3} e f^{2} - 3 a^{3} b d^{2} e^{3} f + 3 a^{3} b d e^{5} + a^{2} b^{2} c^{3} d f^{2} + 4 a^{2} b^{2} c^{3} e^{2} f - 9 a^{2} b^{2} c^{2} d^{2} e f - 2 a^{2} b^{2} c d^{4} f + 5 a^{2} b^{2} c d^{3} e^{2} - 2 a^{2} b^{2} d^{5} e - a b^{3} c^{5} f + 5 a b^{3} c^{4} d e - 5 a b^{3} c^{3} d^{3}}{a^{3} b e^{6} - a^{2} b^{2} c^{2} e^{4} + 8 a^{2} b^{2} c d^{2} e^{3} - 4 a^{2} b^{2} d^{4} e^{2} - a b^{3} c^{4} e^{2} + 8 a b^{3} c^{3} d^{2} e - 4 a b^{3} c^{2} d^{4} + b^{4} c^{6}} \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08104, size = 392, normalized size = 1.34 \begin{align*} \frac{f \log \left ({\left | b x^{4} + a \right |}\right )}{4 \, b} - \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d - \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} - \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d - \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]